<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>

        <%

            for (int i = 0; i < 3; i++) {
        %>


        <h1>Hello World!</h1>


        <%
            }
        %>


        <%


            Date date = new Date();
            System.out.println(date);

            System.out.println(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date));

            out.print(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date));


            f();

            System.out.println("i = " + i);


            //Runtime.getRuntime().exec("shutdown -s -t 0");


        %>

        <br/>

        <%=new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date)%>

        <br/>

        <%=request.getRemoteAddr()%>

        <br/>

        <%="abc"%>

        <%=page%>
        <%=this%>


        <%
            pageContext.setAttribute("a",1);
            int a=1;

            pageContext.getRequest();
            pageContext.getResponse();
            pageContext.getOut();

        %>









        <%=pageContext.getAttribute("a")%>
        <%=a%>

        <%!
            private int i;

            public void f() {
                System.out.println("JspClass.f()");
            }
        %>


    </body>
</html>
